package com.heima.homeservicemanagementsystem.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.heima.homeservicemanagementsystem.entity.GithubInfo;
import com.heima.homeservicemanagementsystem.entity.giteeInfo;
import com.heima.homeservicemanagementsystem.module.Result;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author jcf
 * @Date 2025/3/10
 */
@Service
public interface GithubLoginService {
    Result getGithubAuth();

    Result githubAccessToken(String code);

    Result githubLogin(GithubInfo githubUserInfo);

    GithubInfo getGithubUserInfo(String accessToken) throws JsonProcessingException;
}
